package com.jili.controller;

import com.jili.annotion.UserLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: LogAopController
 * Package com.jili.controller
 * Description:
 *
 * @Author: 廖继礼
 * @Create: 2025/3/9
 * @Version: v1.0
 */
@RequestMapping("/log")
@RestController
public class LogAopController {

    @GetMapping("/test")
    @UserLog(userId = "1", orderId = "2")
    public String log(@RequestParam String name, @RequestParam String userId) {
        return name + "：" + userId;
    }
}
